package com.xn2001.controller;


import com.xn2001.entity.LevelCatalog;
import com.xn2001.entity.LevelCatalogVo;
import com.xn2001.service.LevelCatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 乐心湖
 * @since 2020-07-18
 */
@RestController
@RequestMapping("/levelCatalog")
public class LevelCatalogController {

    @Autowired
    LevelCatalogService levelCatalogService;

    @GetMapping("info")
    public List<LevelCatalogVo> info(){
        return levelCatalogService.info();
    }

    @GetMapping("info2")
    public List<LevelCatalogVo> info2(){
        return levelCatalogService.info2();
    }
}

